package com.liao.dao;

import com.liao.bean.Order;

import java.util.HashMap;
import java.util.List;

public interface OrderDao {

    /**
     * 根据state模糊查询订单
     * @param state_id
     * @param orderId
     * @return
     * @throws Exception
     */
    List<Order> selectOrderListLikeRoleName(HashMap<String, Object> map) throws Exception;

    /**
     * 添加订单
     * @param map
     * @throws Exception
     */
    void addOrder(HashMap<String, Object> map) throws Exception;

    /**
     * 删除订单
     * @param orderId
     * @throws Exception
     */
    void deleteOrder(String orderId) throws Exception;

    /**
     * 修改订单
     * @param map
     * @throws Exception
     */
    void updateOrder(HashMap<String, Object> map) throws Exception;
}
